<html>
<div id="num"></div>
</html>
<script>
    setInterval(function () {
        document.getElementById("num").innerText = Math.random()
    }, 1000)
</script>